<?php
yii::app()->user->hasFlash('contact');
echo Yii::app()->user->getFlash('contact');
?>
<section class="col-lg-6"></section>
<section class="col-lg-12">id:<?php echo $item->id?></section>
<form action="index.php?r=admin/category/edit" method="post">
    <section class="col-lg-2">Tên danh m?c</section><section class="col-lg-9"> <input class="col-lg-6" type="text" name="category_name" value="<?php echo $item->category_name?>"></section><br/>
    <section class="col-lg-2">Danh m?c Cha</section>
    <section class="col-lg-9">
        <select name="parent_id">
            <?php
            foreach($listid as $key => $value){
            ?>
                <option value="<?php echo $value->id;?>"<?php if($item->parent_id==$value->id)echo "selected=''";?> > <?php echo $value->category_name;?></option>
            <?php
            }
           ?>

        </select>

    </section>
    <section class="col-lg-2"> Bi?u tư?ng bootrap</section><section class="col-lg-9"><input type="text" name="glyphicons" value="<?php echo $item->glyphicons;?>"></section>
    <section class="col-lg-2"></section><section class="col-lg-3"><i class="<?php echo $item->glyphicons?>"></i></section>

    <section class="col-lg-12"><input type="submit" name="submit" value="submit"></section>


</form>